package cc.linker.steplink.crm.merchanth5.pojo;

import cc.linker.steplink.crm.commons.utils.NumberUtils;

import java.text.DecimalFormat;

public class ShoppingCartGoodsPo {
    private String shippingFeeTip;//运费相关提示
    private boolean ifShippingFee;//是否展示运费价格
    private Double amount;//	售价	number
    private Long amountCent;//售价	分
    private Long integral;//售积分价	分
    private String amountStr;//售价	元
    private Integer buyCount;//	购买数量	number
    private Integer goodsCount;//	商品库存数量	number
    private String goodsCover;//	商品封面	string
    private Long goodsId;//	商品ID	number
    private String goodsName;//	商品名称	string
    private Integer goodsStatus;//	商品状态
    private Integer dongGoodsStatus;//	懂小姐商品状态
    private Integer shoppingCartId;//	购物车ID	number
    private Long skuId;//	库存设置ID	number
    private String skuKey;//	库存设置键	string
    private String skuValue;//	库存设置名称	string
    private Integer isDelete;//	库存设置名称	string
    private Double goodsFreight;//	运费	string
    private Long goodsFreightCent;//	运费分
    private String goodsFreightStr;
    private String belongId;
    private String mallsBelongId;
    private Integer rebate;// 返利
    private Integer goodsType;// 商品类型 3/4为知识付费
    private Integer isNormal;// 是否正常
    private String distributor;
    private String promotion;
    private Integer malls;
    private Long mallsAmount;//供货价(分)
    private Long mallsGoodsId;//关联供货商城（供货商品ID）
    private Long skuMallsAmount;//供货价(分)
    private String freightTemplateId;//运费模板ID
    private String author;//创作奖励作者/主持人的用户Id
    private Long memberAmountCent;//商品会员价(分)
    private String memberAmount;//商品会员价(元)
    private Long mallsSkuId;//供货商skuId
    private Integer skuIsAble;//sku是否选择
    //限购数量
    private Integer quotaNum;
    //限购等级
    private Integer quotaLevel;
    //限购会员卡
    private String quotaVips;

    //知识商品类型 1图文、2音频、3视频、4专栏
    private Integer knowledgeType;
    //原商品id
    private Long originalGoodsId;
    //是否开启秒杀
    private Integer isSeckill;
    //商品留言
    private String goodsRemark;
    //秒杀状态
    private  Integer seckillStatus;
    //是否是虚拟订单
    private  Integer isVirtual;
    //售罄时间
    private  String overTime;

    public String getGoodsRemark() {
        return goodsRemark;
    }

    public void setGoodsRemark(String goodsRemark) {
        this.goodsRemark = goodsRemark;
    }

    public Long getMallsSkuId() {
        return mallsSkuId;
    }

    public void setMallsSkuId(Long mallsSkuId) {
        this.mallsSkuId = mallsSkuId;
    }

    public Long getMemberAmountCent() {
        return memberAmountCent;
    }

    public void setMemberAmountCent(Long memberAmountCent) {
        this.memberAmountCent = memberAmountCent;
        this.memberAmount = NumberUtils.fenToYuan(memberAmountCent);
    }

    public String getMemberAmount() {
        return memberAmount;
    }

    public void setMemberAmount(String memberAmount) {
        this.memberAmount = memberAmount;
    }

    public boolean isIfShippingFee() {
        return ifShippingFee;
    }

    public void setIfShippingFee(boolean ifShippingFee) {
        this.ifShippingFee = ifShippingFee;
    }

    public String getShippingFeeTip() {
        return shippingFeeTip;
    }

    public void setShippingFeeTip(String shippingFeeTip) {
        this.shippingFeeTip = shippingFeeTip;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getMallsBelongId() {
        return mallsBelongId;
    }

    public void setMallsBelongId(String mallsBelongId) {
        this.mallsBelongId = mallsBelongId;
    }

    public Long getMallsAmount() {
        return mallsAmount;
    }

    public Long getSkuMallsAmount() {
        return skuMallsAmount;
    }

    public void setMallsAmount(Long mallsAmount) {
        this.mallsAmount = mallsAmount;
    }

    public Long getMallsGoodsId() {
        return mallsGoodsId;
    }

    public void setMallsGoodsId(Long mallsGoodsId) {
        this.mallsGoodsId = mallsGoodsId;
    }

    public void setSkuMallsAmount(Long skuMallsAmount) {
        this.skuMallsAmount = skuMallsAmount;
    }

    public String getFreightTemplateId() {
        return freightTemplateId;
    }

    public void setFreightTemplateId(String freightTemplateId) {
        this.freightTemplateId = freightTemplateId;
    }

    public Integer getMalls() {
        return malls;
    }

    public void setMalls(Integer malls) {
        this.malls = malls;
    }

    public String getGoodsFreightStr() {
        return goodsFreightStr;
    }

    public void setGoodsFreightStr(String goodsFreightStr) {
        this.goodsFreightStr = goodsFreightStr;
    }

    public String getAmountStr() {
        return amountStr;
    }

    public void setAmountStr(String amountStr) {
        this.amountStr = amountStr;
    }

    public String getPromotion() {
        return promotion;
    }

    public void setPromotion(String promotion) {
        this.promotion = promotion;
    }

    public String getDistributor() {
        return distributor;
    }

    public void setDistributor(String distributor) {
        this.distributor = distributor;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public Integer getRebate() {
        return rebate;
    }

    public void setRebate(Integer rebate) {
        this.rebate = rebate;
    }

    public String getBelongId() {
        return belongId;
    }

    public void setBelongId(String belongId) {
        this.belongId = belongId;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public String getGoodsCover() {
        return goodsCover;
    }

    public void setGoodsCover(String goodsCover) {
        this.goodsCover = goodsCover;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getShoppingCartId() {
        return shoppingCartId;
    }

    public void setShoppingCartId(Integer shoppingCartId) {
        this.shoppingCartId = shoppingCartId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getSkuKey() {
        return skuKey;
    }

    public void setSkuKey(String skuKey) {
        this.skuKey = skuKey;
    }

    public String getSkuValue() {
        return skuValue;
    }

    public void setSkuValue(String skuValue) {
        this.skuValue = skuValue;
    }

    public Integer getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(Integer goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Double getGoodsFreight() {
        return goodsFreight;
    }

    public void setGoodsFreight(Double goodsFreight) {
        this.goodsFreight = goodsFreight;
    }

    public Long getAmountCent() {
        return amountCent;
    }

    public void setAmountCent(Long amountCent) {
        DecimalFormat df = new DecimalFormat("#.00");
        //分转元
        double s = ((double) amountCent / 100);
        this.amount = Double.valueOf(df.format(s));
        this.amountCent = amountCent;
        this.amountStr = NumberUtils.fenToYuan(amountCent);
    }

    public Long getGoodsFreightCent() {
        return goodsFreightCent;
    }

    public void setGoodsFreightCent(Long goodsFreightCent) {
        DecimalFormat df = new DecimalFormat("#.00");
        //分转元
        double s = ((double) goodsFreightCent / 100);
        this.goodsFreight = Double.valueOf(df.format(s));
        this.goodsFreightCent = goodsFreightCent;
        this.goodsFreightStr = NumberUtils.fenToYuan(goodsFreightCent);
    }

    public Integer getDongGoodsStatus() {
        return dongGoodsStatus;
    }

    public void setDongGoodsStatus(Integer dongGoodsStatus) {
        this.dongGoodsStatus = dongGoodsStatus;
    }

    public Integer getIsNormal() {
        return isNormal;
    }

    public void setIsNormal(Integer isNormal) {
        this.isNormal = isNormal;
    }

    public Long getIntegral() {
        return integral;
    }

    public void setIntegral(Long integral) {
        this.integral = integral;
    }

    public Integer getSkuIsAble() {
        return skuIsAble;
    }

    public void setSkuIsAble(Integer skuIsAble) {
        this.skuIsAble = skuIsAble;
    }

    public Integer getQuotaNum() {
        return quotaNum;
    }

    public void setQuotaNum(Integer quotaNum) {
        this.quotaNum = quotaNum;
    }

    public Integer getQuotaLevel() {
        return quotaLevel;
    }

    public void setQuotaLevel(Integer quotaLevel) {
        this.quotaLevel = quotaLevel;
    }

    public Integer getKnowledgeType() {
        return knowledgeType;
    }

    public void setKnowledgeType(Integer knowledgeType) {
        this.knowledgeType = knowledgeType;
    }

    public Long getOriginalGoodsId() {
        return originalGoodsId;
    }

    public void setOriginalGoodsId(Long originalGoodsId) {
        this.originalGoodsId = originalGoodsId;
    }

    public Integer getIsSeckill() {
        return isSeckill;
    }

    public void setIsSeckill(Integer isSeckill) {
        this.isSeckill = isSeckill;
    }

    public Integer getSeckillStatus() {
        return seckillStatus;
    }

    public void setSeckillStatus(Integer seckillStatus) {
        this.seckillStatus = seckillStatus;
    }

    public String getQuotaVips() {
        return quotaVips;
    }

    public void setQuotaVips(String quotaVips) {
        this.quotaVips = quotaVips;
    }

    public Integer getIsVirtual() {
        return isVirtual;
    }

    public void setIsVirtual(Integer isVirtual) {
        this.isVirtual = isVirtual;
    }

    public String getOverTime() {
        return overTime;
    }

    public void setOverTime(String overTime) {
        this.overTime = overTime;
    }
}
